import { network } from '@/utils';
import { tencent } from '../../../../config/Apis';

// 获取用户概况数据
export async function queryUserInfo(params: any){
  return network.get(tencent.user_info, { params });
}

// 获取用户概况列表
export async function queryUserList(params: any){
  return network.get(tencent.user_list, { params });
}

// 获取柜体列表
export async function queryCabinetList(params: any){
  return network.get(tencent.cabinet_alllist, { params });
}

// 获取货架列表
export async function queryShelfList(params: any){
  return network.get(tencent.shelf_allList, { params });
}

// 解绑柜体
export async function queryUnbundleCabinet(params: any){
  return network.put(tencent.unbundle_cabinet, { data:params });
}

// 绑定柜体
export async function queryBundleCabinet(params: any){
  return network.post(tencent.bundle_cabinet, { data:params });
}

// 获取所有可绑柜体列表
export async function queryAllCabinet(params: any){
  return network.get(tencent.cabinet_list, { params });
}

// 获取所有可绑货架列表
export async function queryAllShelf(params: any){
  return network.get(tencent.shelf_list, { params });
}

// 公众号详情
export async function queryTencentDetail(params: any) {
  return network.get(tencent.tencent_detail, { params });
}

//解除公众号授权
export async function queryRelieveImpower(params: any) {
  return network.post(tencent.relieve_impower, {data: params });
}

// 获取授权地址
export async function queryGetImpower(params: any) {
  return network.get(tencent.get_impower, { params });
}

//授权回调
export async function queryCallbackImpower(params: any) {
  return network.get(tencent.callback_impower, { params });
}
